package org.webguitoolkit.project.query.impl;

import org.webguitoolkit.project.model.IIssue;
import org.webguitoolkit.project.query.IQueryFactory;
import com.endress.infoserve.persistence.PersistenceManager;
import com.endress.infoserve.persistence.query.ICollectionQuery;


/**
 * Implementation of the IQueryFactory,
 * contains factory methods to create queries.
 */
public class QueryFactory implements IQueryFactory{

	protected PersistenceManager pm;
	
	public QueryFactory( PersistenceManager pm ){
		this.pm = pm;
	}

	public ICollectionQuery<IIssue> newProjectByNameQuery(
			String searchName) {
		return new ProjectByNameQuery( pm, searchName );
	}

}
